﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Style_Homework
{
	public partial class NoClickEm : UserControl
	{
		public NoClickEm()
		{
			// Required to initialize variables
			InitializeComponent();
		}

        private void Button5_Click(object sender, RoutedEventArgs e)
        {
            Random r = new Random();
            int top = r.Next(300);
            int left = r.Next(300);
            int right = r.Next(300);
            int bottom = r.Next(300);
            this.Margin = new Thickness(left, top, right, bottom);
            
        }
	}
}